package com.example.myblog;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling  //开启定时任务
@SpringBootApplication
public class MyBlogApplication {

    public static void main(String[] args) {
        //解决elasticSearch与redis的netty版本冲突问题
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run(MyBlogApplication.class, args);
        System.out.println("http://localhost:8080");
    }

}
